//
//  FTSearchButton.m
//  项目2
//
//  Created by rimi on 16/8/19.
//  Copyright © 2016年 wzc. All rights reserved.
//

#import "FTSearchButton.h"

@implementation FTSearchButton
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat titleX = 55 + contentRect.origin.x;
    CGFloat titleY = contentRect.origin.y + 5;
    CGFloat titleW = contentRect.size.width - 20;
    CGFloat titleH = contentRect.size.height - 10;
    return CGRectMake(titleX, titleY, titleW, titleH);
}
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat titleX = contentRect.origin.x + 10;
    CGFloat titleY = contentRect.origin.y + 5;
    CGFloat titleW = 20;
    CGFloat titleH = contentRect.size.height - 10;
    return CGRectMake(titleX, titleY, titleW, titleH);
}
@end
